home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / UTILHIVE / FILEARCH.LZH / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-09-25  |  4KB  |  99 lines

  1. Echo off
  2. CLS
  3. if "%1" == "" goto Noparms
  4. if "%2" == "" goto NoDir
  5. GOTO Proceed
  6. :NoDir
  7. Echo  
  8. Echo WARNING: You did not specify a directory
  9. Echo  
  10. Echo If you proceed, File/Archive will be installed in the root directory
  11. Echo of drive %1.  If you made a mistake and want to start over, then
  12. Echo press Ctl-Brk now; otherwise
  13. Echo  
  14. Pause
  15. Cls
  16. :Proceed
  17. Echo  
  18. Echo      ══════════════════════════════════════════════════════════════════════
  19. Echo  
  20. Echo                            F I L E / A R C H I V E
  21. Echo                       Hard Disk Installation Procedure
  22. Echo  
  23. Echo             You have asked that File/Archive be installed on a
  24. Echo             drive and directory specified by you. They are:
  25. Echo  
  26. Echo                            drive           DIRECTORY
  27. Echo  
  28. Echo                             %1               %2
  29. Echo  
  30. Echo             If this is not correct, press Ctl-Brk now. Then re-enter
  31. Echo             the procedure with the correct drive letter and directory
  32. Echo             according to the following format:
  33. Echo  
  34. Echo                                  HDINST x: name
  35. Echo  
  36. Echo             where "x" is the drive letter and "name" is the name of
  37. Echo             the directory you wish to use. The current (default)
  38. Echo             drive should be A:.
  39. Echo  
  40. Echo      ══════════════════════════════════════════════════════════════════════
  41. Echo  
  42. pause
  43. if "%2" == "" goto BypassMD
  44. MD %1\%2
  45. :BypassMD
  46. %1
  47. CD \%2
  48. Echo Echo off > inst0.bat
  49. Echo Cls >> inst0.bat
  50. Echo HDINST2 %1 %2 >> inst0.bat
  51. GOTO Cont1
  52. :Noparms
  53. Echo  
  54. Echo      ╔════════════════════════════════════════════════════════════════════╗
  55. Echo      ║                                                                    ║
  56. Echo      ║                      F I L E / A R C H I V E                       ║
  57. Echo      ║                 Hard Disk Installation Procedure                   ║
  58. Echo      ║                                                                    ║
  59. Echo      ║      This procedure will install File/Archive on your hard disk    ║
  60. Echo      ║      and set up the control files to simplify its operation.       ║
  61. Echo      ║                                                                    ║
  62. Echo      ║      It will create a sub-directory called FILARC where the        ║
  63. Echo      ║      programs and data files will be stored. It assumes that       ║
  64. Echo      ║      your hard disk is drive C:. If this is not correct, or        ║
  65. Echo      ║      if you want to use a different directory name, press          ║
  66. Echo      ║      Ctl-Brk now. Then re-enter the procedure with the correct     ║
  67. Echo      ║      drive letter and directory name according to the following    ║
  68. Echo      ║      format:                                                       ║
  69. Echo      ║                           HDINST x: name                           ║
  70. Echo      ║                                                                    ║
  71. Echo      ║      where "x" is the drive letter and "name" is the name of       ║
  72. Echo      ║      the directory you wish to use. The current (default)          ║
  73. Echo      ║      drive should be A:.                                           ║
  74. Echo      ║                                                                    ║
  75. Echo      ╚════════════════════════════════════════════════════════════════════╝
  76. Echo  
  77. pause
  78. MD C:\FILARC
  79. C:
  80. CD \FILARC
  81. Echo Echo off > inst0.bat
  82. Echo Cls >> inst0.bat
  83. Echo HDINST2 C: FIlARC  >> inst0.bat
  84. :Cont1
  85. CLS
  86. Echo  
  87. Echo        Extracting files/programs - one moment please .....
  88. Echo  
  89. :    If a master already exists, rename it
  90. IF EXIST FILARC.MRE Ren FILARC.MRE FILARC.BAK
  91. A:FILARC20
  92. A:USERDOC
  93. :    Extract all files to the installation directory
  94. IF NOT EXIST FILARC.BAK Goto SkipRename
  95. Del FILARC.MRE
  96. Ren FILARC.BAK *.MRE
  97. :SkipRename
  98. INST0
  99.